﻿using System;
using System.Collections.Generic;
using System.Text;
using Hkwl.WorldExpo.Merchant.Model;

namespace Hkwl.WorldExpo.Merchant.Service
{
    public interface IMerchantService
    {
        #region NxMerchant 对象

        NxMerchant GetNxMerchant(int merchantId);

        bool InsertNxMerchant(NxMerchant merchant);

        bool UpdateNxMerchant(NxMerchant merchant);

        NxMerchant CheckMerchantLogin(string loginName, string password);

        IList<NxMerchant> GetNxMerchantCollection(int status, int pageIndex, int pageSize, ref int count);

        #endregion

        #region NxShopType 对象

        IList<NxShopType> GetShopTypeCollection();

        bool InsertNxShopType(NxShopType shopType);

        #endregion

        #region NxMerchantLog 对象

        bool InsertNxMerchantLog(NxMerchantLog log);

        NxMerchantLog GetNxMerchantLogById(NxMerchantLog logId);

        IList<NxMerchantLog> GetNxMerchantLogCollection(int merchantId, int shopTypeId, int pageIndex, int pageSize, ref int count);

        #endregion

        /// <summary>
        /// 通用商家操作日志
        /// </summary>
        /// <param name="strFormat">输入字符串格式</param>
        /// eg:查看商家信心{0}
        void CommonInsertFormatLog(int merchantId, int shopTypeId, string strFormat);

    }
}
